
import Relay from "react-relay";
export default class ProductionProcessMutation extends Relay.Mutation {

    static fragments = {};

    getMutation() {
        return Relay.QL`mutation { getproductProcess }`;
    }

    getVariables() {
        return {
            argsInput: {
              enId: this.props.enId,
              status: this.props.status, //已签订
              orderType: this.props.orderType,
              pageSize: this.props.pageSize,
              pageNum: this.props.pageNum,
              partbName: this.props.partbName,
                styleNo: this.props.styleNo,
            }
        };
    }

    getFatQuery() {
        return Relay.QL`fragment on getproductProcessPayload  {
            getproductProcess {
                errorCode
                value
                totalResult
                id
                processRecords{
                  gid
                  orderId
                  quality
                  partBname
                  traderName
                  styleNo
                  cutQua
                  cutQuaRemain
                  sewQua
                  sewQuaRemain
                  afterQua
                  afterQuaRemain
                  packQua
                  packQuaRemain
                  operateId
                }
            }
        }`;
    }

    getConfigs() {
        return [{
            type: 'REQUIRED_CHILDREN',
            children: [Relay.QL`
               fragment on getproductProcessPayload  {
                    getproductProcess {
                        errorCode
                        value
                        totalResult
                        id
                        processRecords{
                          gid
                          orderId
                          quality
                          partBname
                          traderName
                          styleNo
                          cutQua
                          cutQuaRemain
                          sewQua
                          sewQuaRemain
                          afterQua
                          afterQuaRemain
                          packQua
                          packQuaRemain
                          operateId
                        }
                    }
                 }
            `]
        }];
    }

}
